package com.snfdf.camunda.controller;

import lombok.RequiredArgsConstructor;
import org.camunda.bpm.engine.RuntimeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RestController
public class SendSignalController {

    private final RuntimeService runtimeService;

    @GetMapping("/send_signal")
    public boolean sendSignal() {
        runtimeService.createSignalEvent("Signal_direct_leader").send();
        return true;
    }
}
